<?php /*a:3:{s:83:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/member/list-member.html";i:1686038761;s:77:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/public/style.html";i:1678364220;s:78:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/public/footer.html";i:1678364219;}*/ ?>
<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/static/admin/css/font.css">
<link rel="stylesheet" href="/static/admin/css/xadmin.css">
<script type="text/javascript"	src="/static/admin/js/jquery.min.js"></script>
<script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
<script type="text/javascript" src="/static/admin/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/plugin/webuploader/webuploader.css">
<script type="text/javascript" src="/plugin/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/plugin/clipboard/clipboard.js"></script>
<!--[if lt IE 9]>
  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
function uploadimg(f1,f2,f3) {
	//f2 = "'" + f2 + "'";
	//alert(f2);
	var $list =$(f1);
	var thumbnailWidth = 150;
	var thumbnailHeight = 150;
	// 初始化Web Uploader
	var uploader = WebUploader.create({
		// 选完文件后，是否自动上传。
		auto: true,
		// swf文件路径
		swf: '/plugin/webuploader/Uploader.swf',
		// 文件接收服务端。
		server: '/plugin/uploadify/uploader.php',
		// 选择文件的按钮。可选。
		// 内部根据当前运行是创建，可能是input元素，也可能是flash.
		pick: f2,
		// 只允许选择图片文件。
		accept: {
			title: 'Images',
			extensions: 'gif,jpg,jpeg,bmp,png',
			mimeTypes: 'image/*'
		}
	});
	// 当有文件添加进来的时候
	uploader.on( 'fileQueued', function( file ) {
	    var $li = $('<div id="' + file.id + '" class="file-item thumbnail">' +  '<img></div>'),
	        $img = $li.find('img');
	    
	    // $list为容器jQuery实例
	    $list.html( $li );

	    // 创建缩略图
	    // 如果为非图片文件，可以不用调用此方法。
	    // thumbnailWidth x thumbnailHeight 为 100 x 100
	    uploader.makeThumb( file, function( error, src ) {
	        if ( error ) {
	            $img.replaceWith('<span>不能预览</span>');
	            return;
	        }
	        $img.attr( 'src', src );
	    }, thumbnailWidth, thumbnailHeight );
	});
	uploader.on('uploadSuccess', function(file, response){
		  $(f3).val(response._raw);
	});
}
</script>
    </head>
    <body>
        <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">用户管理</a>
            <a><cite>用户列表</cite></a>
          </span>
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <form class="layui-form layui-col-space5" method="post">
						        <div class="layui-inline layui-show-xs-block">
                                	<select name="type">
							           <option value="6" <?php if(app('request')->param('type') == '6'): ?>selected="selected"<?php endif; ?>>按账号</option>
							           <option value="1" <?php if(app('request')->param('type') == '1'): ?>selected="selected"<?php endif; ?>>用户ID</option>
						            </select>
						        </div>
						        <div class="layui-inline layui-show-xs-block">
                                    <input type="text" name="kw"  placeholder="请输入" autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-inline layui-show-xs-block">
                                    <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form>
                        </div>
                        
                        <div class="layui-card-body layui-table-body layui-table-main">
                            <table class="layui-table layui-form">
                                <thead>
                                  <tr>
                                  	<th>查看</th>                                  
                                  	<th>用户ID</th>
                                  	<th>账号</th>
                                  	<th>邮箱</th>
                                  	<th width="20">登录密码</th>
                                  	<th width="20">交易密码</th>
                                  	<th>级别</th>
                                  	<th>最后登录时间</th>
                                  	<th>最后登录IP</th>
                                  	<th>登录次数</th>
                                  	<th>余额</th>
                                  	<th>正在提现</th>
                                  	<th>状态</th>
								    <th>删除</th>
                                </thead>
                                <tbody>
                                  <?php if(is_array($data->items()) || $data->items() instanceof \think\Collection || $data->items() instanceof \think\Paginator): $i = 0; $__LIST__ = $data->items();if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                  <tr>
                                   <td class="td-manage">    
									  <a title="查看" href="javascript:void(0);" onclick="xadmin.open('编辑','<?php echo url("Member/info",array("id"=>$vo["user_id"])); ?>')"  class="layui-btn">查看</a>
                                    </td>
                                    <td><?php echo htmlentities($vo['user_id']); ?></td>
                                    <td><?php echo htmlentities($vo['user_name']); ?></td>
                                    <td><?php echo htmlentities($vo['email']); ?></td>
                                    <td><?php echo htmlentities($vo['password']); ?></td>
                                    <td><?php echo htmlentities($vo['paypwd']); ?></td>
                                    <td><?php if($vo['role_id'] == '0'): ?>无<?php else: ?><?php echo htmlentities($vo['role_name']); ?><?php endif; ?></td>
                                    <td><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($vo['last_login'])? strtotime($vo['last_login']) : $vo['last_login'])); ?></td>
                                    <td><?php echo htmlentities($vo['last_ip']); ?></td>
                                    <td><?php echo htmlentities($vo['logins']); ?></td>
                                    <td><?php echo htmlentities($vo['money']); ?></td>
                                    <td><?php echo htmlentities($vo['lock_money']); ?></td>
                                    <td><?php if($vo['status'] == '0'): ?><span class="layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled">冻结</span><?php endif; if($vo['status'] == '1'): ?><span class="layui-btn layui-btn-normal layui-btn-mini">启用</span><?php endif; ?></td>
                                   <td class="td-manage">
									  <a title="删除" onclick="remove_del(this,'<?php echo url('Member/del',array('id'=>$vo['user_id'])); ?>')" href="javascript:void(0);" class="layui-btn layui-btn-normal">删</a>
                                    </td>									
                                  </tr>
                                  <?php endforeach; endif; else: echo "" ;endif; ?>
                                </tbody>
                            </table>
                        </div>
                        <div class="layui-card-body ">
                            <div class="page">
                              <?php echo $data->render(); ?> 
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <br>
<div class="layui-col-md12"><blockquote class="layui-elem-quote layui-quote-nm"><a href="" target="_blank"></a></blockquote></div>
        </div> 
    </body>
    <script>
      layui.use(['laydate','form'], function(){
        var laydate = layui.laydate;
        var  form = layui.form;


        // 监听全选
        form.on('checkbox(checkall)', function(data){

          if(data.elem.checked){
            $('tbody input').prop('checked',true);
          }else{
            $('tbody input').prop('checked',false);
          }
          form.render('checkbox');
        }); 
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });


      });
    </script>
</html>